widget-factory: Speed up build
authorMatthias Clasen <mclasen@redhat.com>
Fri, 1 Oct 2021 02:41:36 +0000 (22:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 1 Oct 2021 03:10:24 +0000 (23:10 -0400)
commitd7e117f52b14f4571a3e6aaa5405b61e3efc6161
tree9b077f43431e141cadc2ae6ca68e227068a6a9d6
parent72bbc51ba9e8f521f9c18b974c06638f692a2767
widget-factory: Speed up build

Avoid serializing the gresource blob into a C string
and running gcc over it. Instead, use ld to put it
directly into an .o file and add it to the build.

The build system machinations here were copied from
gobject/tests/meson.build, and should ideally be part
of the meson gnome module.
demos/widget-factory/meson.build